package com.bosssoft.trainee.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author: wuxin
 * @Date: 2022/6/17
 * @Project rbac
 * @Version 1.0
 * @Description
 */
@Repository
public interface UserDao {
    /**
     * 检查工号是否存在
     * @param workerNum
     * @return
     */
    int checkWorkerNum(@Param("workerNum") String workerNum,@Param("id")Integer id);

    /**
     * 检查用户名是否存在
     * @param username
     * @return
     */
    int checkUsername(@Param("username") String username,@Param("id")Integer id);
}
